package com.ruoyi.constroller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("page")
public class IndexController {

    @GetMapping({"/index", "/"})
    public String pageIndex() {

        return "index";
    }

    @GetMapping({"/detail"})
    public String pageDetail() {

        return "jie/detail";
    }

    @GetMapping({"/userHome"})
    public String pageUserHome() {

        return "user/home";
    }

    @GetMapping({"/jieAdd"})
    public String pageJieAdd() {

        return "jie/add";
    }

    @GetMapping({"/login"})
    public String pageLogin() {

        return "user/login";
    }

    @GetMapping({"/reg"})
    public String pageReg() {

        return "user/reg";
    }

    @GetMapping("user/index.html")
    public String pageUserIndex() {
        return "user/index";
    }

    @GetMapping("home.html")
    public String pageHome() {
        return "user/home";
    }

    @GetMapping("set.html")
    public String pageSet() {
        return "user/set";
    }

    @GetMapping("message.html")
    public String pageMessage() {
        return "user/message";
    }

}
